import axios from 'axios'

// 风机监控-通风系统
export const fanList = () => {
  return axios({
    url: '/api/MonitorFanSelect', //列表查询
    url: 'https://mock.anybz.com/mock/6065a2e2d0b98a53f78993dd/example/fanList', //MOCK
    method: 'get'
  })
}

export const fanId = (id) => {
  return axios({
    url: '/api/MonitorFanSelect/' + id, //id查询
    method: 'get'
  })
}

// 皮带系统
export const beltList = () => {
  return axios({
    // url: '/api/MonitorBeltSelect', //列表查询
    // url: 'https://mock.mengxuegu.com/mock/605853a50d58b864da03d491/example/belt',  //MOCK
    url: 'https://mock.anybz.com/mock/6065a2e2d0b98a53f78993dd/example/belt',  //MOCK
    method: 'get'
  })
}

export const beltId = (id) => {
  return axios({
    url: '/api/MonitorBeltSelect/' + id, //id查询
    method: 'get'
  })
}

// 水泵系统 == 通风系统?
export const pumpList = () => {
  return axios({
    // url: '/api/MonitorPumpSelect', //列表查询
    // url: 'https://mock.mengxuegu.com/mock/605853a50d58b864da03d491/example/suiji', //MOCK
    url: 'https://mock.anybz.com/mock/6065a2e2d0b98a53f78993dd/example/suiji', //MOCK
    method: 'get'
  })
}

export const pumpId = () => {
  return axios({
    url: '/api/api/MonitorPumpSelect' + 'id', //id查询
    method: 'get'
  })
}

// 立井监控
export const vshaftList = () => {
  return axios({
    // url: '/api/MonitorVShaftSelect', //列表查询
    url: 'https://mock.mengxuegu.com/mock/605853a50d58b864da03d491/example/mainup',  //MOCK
    url: 'https://mock.anybz.com/mock/6065a2e2d0b98a53f78993dd/example/mainup',  //MOCK
    method: 'get'
  })
}

export const vshaftId = (id) => {
  return axios({
    url: 'api/MonitorVShaftSelect' + id, //id查询
    method: 'get'
  })
}

// 压风系统
export const windList = () => {
  return axios({
    // url: 'https://mock.mengxuegu.com/mock/605853a50d58b864da03d491/example/wind', //MOCK
    url: 'https://mock.anybz.com/mock/6065a2e2d0b98a53f78993dd/example/wind', //MOCK
    method: 'get'
  })
}

// 电力系统
export const powerList = () => {
  return axios({
    // url: 'https://mock.mengxuegu.com/mock/605853a50d58b864da03d491/example/power', //MOCK
    url: 'https://mock.anybz.com/mock/6065a2e2d0b98a53f78993dd/example/power', //MOCK
    method: 'get'
  })
}